package com.itheima.tanhua.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Lff
 * @date 2022/3/22
 */
@Data
public abstract class BasePojo implements Serializable {

    @TableField(fill = FieldFill.INSERT) //自动填充
    //创建时间
    private Date created;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    //修改时间
    private Date updated;

}